﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Rhsoft.SqlServer.MetadataManager
{
    public partial class CreatePropertyForm : Form
    {
        public string PropertyName { get; set; }
        public string PropertyDefaultValue { get; set; }
        public bool IsCancel { get; set; }
        public CreatePropertyForm( )
        {
            InitializeComponent( );
        }
        
        private void bCreate_Click( object sender, EventArgs e )
        {
            this.PropertyName = FieldName.Text;
            this.PropertyDefaultValue = FieldDefaultValue.Text;
            this.IsCancel = false;
            this.Close( );
            this.Dispose( );
        }

        private void bCancel_Click( object sender, EventArgs e )
        {
            this.IsCancel = true;
            this.Close( );
            this.Dispose( );
        }
    }
}
